import request from "../utils/request.js"

export function checkname(username) {
    var data = {
        "username":username
    }
  return request({
    url: '/checkname', // 使用相对路径
    method: 'post',
    data: data
  })
}

export function login(username,password) {
  var data = {
      "username":username,
      "password":password
  }
  return request({
    url: '/login', // 使用相对路径
    method: 'post',
    data: data
  })
}